package com.lai.lai.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lmx
 * @Date 2021/4/27 23:15
 * @Version 1.0
 */
@AllArgsConstructor
@NoArgsConstructor

public enum EmBusiness {
    PARAMETER_VALIDATION_ERROR(10001,"参数不合法"),
    UNKNOWN_ERROR(10002,"未知错误"),
    AREA_NOT_EXIT(20001,"区域不存在"),
    AREA_INSERT_ERROR(20002,"区域插入失败"),
    AREA_UPDATE_ERROR(20003,"更新区域信息失败"),
    AREA_DELETE_ERROR(20004,"删除区域信息失败"),
    SUCCESS(30001,"成功"),
    FAIL(30002,"失败"),
            ;

    private int Code;
    private String Msg;

    public Integer getCode(){
        return Code;
    }
    public String getMsg(){
        return Msg;
    }
}
